import request from '@/utils/request'
// 登录
export const login = (data) => {
  return request({
    method: 'POST',
    url: '/sys/login',
    data
  })
}

// 短信验证码
export const loginCode = (data) => {
  return request({
    method: 'POST',
    url: '/login/code',
    data
  })
}

// 菜单
export const menuLists = () => {
  return request({
    method: 'GET',
    url: '/sys/menu/lists'
  })
}

// 城市三级联动
export const cityCode = (data) => {
  return request({
    method: 'POST',
    url: '/third/citycode/list',
    data
  })
}

// 公共数据相关接口
export const dictList = (data) => {
  return request({
    method: 'POST',
    url: '/common/dict/list',
    data
  })
}

// 用户密码修改
export const userPwd = (data) => {
  return request({
    method: 'POST',
    url: '/sys/user/pwd',
    data
  })
}

// ocr识别
export const ocrRecognition = (data) => {
  return request({
    method: 'POST',
    url: '/cardriver/quickReg/save',
    data
  })
}
